import VuexLogin from '../../store/modules/login'
export default {
    install(Vue, options) {
        Vue.prototype.$checkAuth = function (auth) {
            if (VuexLogin['state']['isAdmin'] == true) {
                // 系统管理员拥有全部权限
                return true;
            }
            return VuexLogin['state']['loginUser']['authoritys'].indexOf(auth) != -1
        }
    }
}